<?php
class Silk_Dao_RolePermission extends FP_Dao_RolePermission
{

    public function setTableDefinition()
    {
	parent::setTableDefinition();
        $this->setTableName('silk_role_permission');
    }

    public function setUp() {
	$this->hasOne('Silk_Dao_Permission as Permission', array('local' => 'permission_id', 'foreign' => 'permission_id'));
	$this->hasOne('Silk_Dao_Role as Role', array('local' => 'role_id', 'foreign' => 'role_id'));
    }

}
?>